//
//  UIColor+CarouselBGColor.h
//  ONE
//
//  Created by dllo on 16/6/17.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (CarouselBGColor)

@property (nonatomic, readonly) CGColorSpaceModel colorSpaceModel;

@property (nonatomic, readonly) BOOL canProvideRGBComponents;

@property (nonatomic, readonly) CGFloat red; // Only valid if canProvideRGBComponents is YES

@property (nonatomic, readonly) CGFloat green; // Only valid if canProvideRGBComponents is YES

@property (nonatomic, readonly) CGFloat blue; // Only valid if canProvideRGBComponents is YES

@property (nonatomic, readonly) CGFloat white; // Only valid if colorSpaceModel == kCGColorSpaceModelMonochrome

@property (nonatomic, readonly) CGFloat alpha;

@property (nonatomic, readonly) UInt32 rgbHex;

+ (UIColor *)randomColor;

+ (UIColor *)colorWithRGBHex:(UInt32)hex;

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert andAlpha:(CGFloat)alpha;

@end
